package cn.hnucm.searchesservice.dao;

import cn.hnucm.searchesservice.entity.TbGoodsImage;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Description:
 * @author: chenjintao
 * @Date: 2021/12/20 23:21
 */
@Mapper
public interface TbGoodsImageDao {
    //获取一个商品号的所有图片路径
    List<TbGoodsImage> getImageByGoodsId(Integer goodsId);
    //删除一条记录
    Boolean deleteGoodsImage(TbGoodsImage tbGoodsImage);
    //添加一条图片记录
    Boolean addGoodsImage(TbGoodsImage tbGoodsImage);
    //修改一条图片记录
    Boolean updateGoodsImage(Integer goodsId,String oldImagePath,String newImagePath);
}
